package cn.buddha.jesj.thread.jvm;

import lombok.*;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName MyThread
 * @Description 线程
 * @Author shihao
 * @Date 2021/6/20 0020 13:13
 * @Version 1.0
 **/
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Slf4j
public class MyThread extends Thread {

    private String title;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            log.info("this current thread is {}, execute value is {}", this.title, i);
        }
    }
}
